package com.zhoutao.blog.seven.model.exception;


import lombok.Getter;

public enum ErrorCode {
    USER_PASS_NOT_MATCH(403001, "用户名和密码不匹配"),
    OPERATOR_LIMIT(403002,"用户操作速度过快，请稍后重试"),
    SYSTEM_ERROR(500001, "系统出现异常");

    @Getter
    private final int code;

    @Getter
    private final String desc;

    ErrorCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
